<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
  <title><%= @page_title -%></title>
  <%= stylesheet_link_tag 'iui' %>
  <%= javascript_include_tag 'iui' %>
</head>
<body>
  <div class="toolbar">
    <h1 id="pageTitle"><%= @page_title || "Spendy!" %></h1>
    <a id="backButton" class="button" href="#"></a>
	<!--

	<div id="login_logout">
	<% if !logged_in? %>
	  <%= link_to "Login", "#session_form", :class => "button" %>
	<% else %>
	  <%= link_to "Logout", {:controller => "sessions", :action => "destroy"}, :method => "delete", :class => "button" %>
	<% end %>
	</div>

	<%= render :partial => 'sessions/new' %>

	-->
  </div>

  <%= yield %>

</body>
</html>
